import socket
import time

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('172.23.76.64', 8009))

try:
    while True:
        data = input(">>>")
        s.send(data.encode('utf-8'))
        time.sleep(1)
        print(s.recv(1024).decode('utf-8'))
except KeyboardInterrupt:
    s.close()
    